package net.lanelife.casino.caipiao.dto.admin;

import java.util.Date;

import javax.validation.constraints.NotNull;

import net.lanelife.casino.common.dto.PersistentDTO;

import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotBlank;
import org.springframework.format.annotation.DateTimeFormat;

public class UserBankCardUpdateDTO extends PersistentDTO<Integer> {

	private static final long serialVersionUID = -4281991825455386012L;

	@NotNull
	private Integer id;
	
	@NotBlank
	@Length(min = 2, max = 10)
	private String bankName;
	
	@NotBlank
	@Length(min = 2, max = 20)
	private String branchName;
	
	@NotBlank
	@Length(min = 2, max = 10)
	private String accountName;
	
	@NotBlank
	@Length(min = 2, max = 20)
	private String accountNo;
	
	@NotNull
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	private Date securityTime;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getBankName() {
		return bankName;
	}

	public void setBankName(String bankName) {
		this.bankName = bankName;
	}

	public String getBranchName() {
		return branchName;
	}

	public void setBranchName(String branchName) {
		this.branchName = branchName;
	}

	public String getAccountName() {
		return accountName;
	}

	public void setAccountName(String accountName) {
		this.accountName = accountName;
	}

	public String getAccountNo() {
		return accountNo;
	}

	public void setAccountNo(String accountNo) {
		this.accountNo = accountNo;
	}

	public Date getSecurityTime() {
		return securityTime;
	}

	public void setSecurityTime(Date securityTime) {
		this.securityTime = securityTime;
	}
	
}
